import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'info',
    component: () => import( '../views/certificate/info.vue'),
    meta: {
      title: '江西住建云'
    }
  },
  {
    path: '/list',
    name: 'list',
    component: () => import( '../views/certificate/list.vue'),
    meta: {
      title: '证书列表',
      keepAlive: true,
      isBack: false
    }
  },


  {
    path: '/listHandle',
    name: 'listHandle',
    component: () => import( '../views/certificate/listHandle.vue'),
    meta: {
      title: '证书办理',
      keepAlive: true,
      isBack: false
    }
  },

    {
        path: '/specialListHandle',
        name: 'specialListHandle',
        component: () => import( '../views/certificate/specialListHandle.vue'),
        meta: {
            title: '证书办理',
            keepAlive: true,
            isBack: false
        }
    },

  {
    path: '/upFile',
    name: 'upFile',
    component: () => import( '../views/certificate/upFile.vue'),
    meta: {
      title: '上传附件',
      isBack: false
    }
  },

  {
    path: '/detail-safety',
    name: 'detail-safety',
    component: () => import( '../views/certificate/detail-safety.vue'),
    meta: {
      title: '证书详情',
      isBack: false
    }
  },
  {
    path: '/detail-special',
    name: 'detail-special',
    component: () => import( '../views/certificate/detail-special.vue'),
    meta: {
      title: '证书详情',
      isBack: false
    }
  },
  {
    path: '/detail-reg',
    name: 'detail-reg',
    component: () => import( '../views/certificate/detail-reg.vue'),
    meta: {
      title: '证书详情',
      isBack: false
    }
  },
  {
    path: '/detail-reg0204',
    name: 'detail-reg0204',
    component: () => import( '../views/certificate/detail-reg0204.vue'),
    meta: {
      title: '证书详情',
      isBack: false
    }
  }


];

const router = new VueRouter({
  //mode: 'history',
  base: process.env.BASE_URL,
  routes
});

export default router
